package com.pn.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
public class Record implements Serializable {
    private Integer rid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date rtime;

    private Integer uidT;

    private Integer uidF;

    private Integer pid;

    private Float price;

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Date getRtime() {
        return rtime;
    }

    public void setRtime(Date rtime) {
        this.rtime = rtime;
    }

    public Integer getUidT() {
        return uidT;
    }

    public void setUidT(Integer uidT) {
        this.uidT = uidT;
    }

    public Integer getUidF() {
        return uidF;
    }

    public void setUidF(Integer uidF) {
        this.uidF = uidF;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Record{" +
                       "rid=" + rid +
                       ", rtime=" + rtime +
                       ", uidT=" + uidT +
                       ", uidF=" + uidF +
                       ", pid=" + pid +
                       ", price=" + price +
                       '}';
    }
}